package com.wangjiacai.repository;


import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface BaseRepository {

    <T> T get(String hql, Object object,Class<T> T);

    <T> T get(String hql, Map<String, Object> params,Class<T> T);

    <T> List<T> find(String hql, Object object,Class<T> T);

    <T> List<T> find(String hql, Object object, Pageable pageable, Class<T> T);

    long count(String hql, Object object);

}
